using System;

namespace SmallMvc
{
    public static class TypeExtensions
    {
        public static string LastPartOfNamespace(this Type @this)
        {
            var parts = @this.Namespace.Split('.');
            return parts.Length > 1 ? parts[parts.Length - 1] : null;
        }
    }
}